/**
 * Created by Administrator on 2016/10/22.
 *
 * 价格处理类
 */
public class PriceHandle {

    private IMember member;

    public void setMember(IMember member) {
        this.member = member;
    }

    public Double getMemberPrice(Double price) {
        Double postage=5.0;
        if (member.freeShipping()) {
            postage = 0.0;
        }

        return (member.getPrice(price) + postage);
    }

}
